Matthias Clasen [Tue, 26 Dec 2017 16:47:15 +0000 (11:47 -0500)]
gdk: Move GdkWindowState enum around
We no longer have an event for this, so move the
enum to gdkwindow.h, where it belongs.
Matthias Clasen [Tue, 26 Dec 2017 16:34:18 +0000 (11:34 -0500)]
More documentation additions
Matthias Clasen [Tue, 26 Dec 2017 16:30:37 +0000 (11:30 -0500)]
Drop gratitious use of GdkPoint
This is the only use of this undocumented struct,
and it does not make this code any better. Just drop it.
Matthias Clasen [Tue, 26 Dec 2017 16:19:24 +0000 (11:19 -0500)]
Some GdkMonitor documentation additions
Document the ::invalidated signal.
Matthias Clasen [Tue, 26 Dec 2017 16:01:38 +0000 (11:01 -0500)]
Remove leftover API from headers
gdk_window_mark_paint_from_clip was removed in
bddfd7bb41cebd9b4e8ea418ce4d8e1f11822e81
Matthias Clasen [Tue, 26 Dec 2017 15:59:38 +0000 (10:59 -0500)]
Document new event getters
New API needs documentation.
Matthias Clasen [Tue, 26 Dec 2017 15:30:50 +0000 (10:30 -0500)]
Try to make the docs build more quiet
Not sure if this really makes a difference.
Matthias Clasen [Tue, 26 Dec 2017 15:22:21 +0000 (10:22 -0500)]
gdk: Remove the event structs from the documentation
No longer public api.
Matthias Clasen [Tue, 26 Dec 2017 15:21:45 +0000 (10:21 -0500)]
Document gdk_display_get_setting
New api needs documentation.
Matthias Clasen [Tue, 26 Dec 2017 15:05:09 +0000 (10:05 -0500)]
Remove leftover gdk_event_request_motions from headers
The implementation of this function was removed in
44cb3ccfa15d6f840b34f916d733ea393a1620a2.
Matthias Clasen [Tue, 26 Dec 2017 14:44:52 +0000 (09:44 -0500)]
Drop gsk_renderer_get/set_viewport from the docs
These no longer exist.
Matthias Clasen [Tue, 26 Dec 2017 14:30:44 +0000 (09:30 -0500)]
gdk: Document GdkDisplay::setting-changed
New api needs documentation.
Matthias Clasen [Tue, 26 Dec 2017 14:30:07 +0000 (09:30 -0500)]
Some migration guide revisions
Add a few things, reword some others.
Matthias Clasen [Tue, 26 Dec 2017 14:01:57 +0000 (09:01 -0500)]
docs: Add new headerbar api
Some functions have been renamed here.
Matthias Clasen [Tue, 26 Dec 2017 13:39:29 +0000 (08:39 -0500)]
Add GtkIconSize back to the docs
And document how it works now.
Matthias Clasen [Mon, 25 Dec 2017 21:40:47 +0000 (16:40 -0500)]
gdk: Reshuffle docs slightly
Deemphasize GdkPixbuf in the docs.
Ting-Wei Lan [Sun, 24 Dec 2017 16:14:05 +0000 (00:14 +0800)]
docs: Fix the build of gdk4 documentation
https://bugzilla.gnome.org/show_bug.cgi?id=791926
Matthias Clasen [Mon, 25 Dec 2017 16:27:16 +0000 (11:27 -0500)]
check button: Fix inconsistent state
This has been broken since the inconsistent state
was moved here in
2aea8dfee97b.
Ting-Wei Lan [Sun, 24 Dec 2017 16:24:04 +0000 (00:24 +0800)]
gdk/broadway/toarray.pl: Don't hard-code the path of perl
https://bugzilla.gnome.org/show_bug.cgi?id=791927
Matthias Clasen [Sat, 23 Dec 2017 03:59:00 +0000 (22:59 -0500)]
Fix the docs build
We no longer have GtkClipboard.
Matthias Clasen [Sat, 23 Dec 2017 03:56:35 +0000 (22:56 -0500)]
css: Document font-variant and subproperties
Add the CSS font level 3 properties that we support now
to the docs.
Emmanuele Bassi [Thu, 21 Dec 2017 19:13:28 +0000 (19:13 +0000)]
Update annotations for GdkDisplay
GdkDisplay is missing various annotations, and the introspection scanner
is complaining about it.
Emmanuele Bassi [Thu, 21 Dec 2017 19:07:02 +0000 (19:07 +0000)]
Update annotations for GdkEvent API
The GdkEvent API is missing some gtk-doc stanzas, as well as some
introspection annotations.
Emmanuele Bassi [Thu, 21 Dec 2017 19:00:28 +0000 (19:00 +0000)]
docs: Add missing signal parameter
The `flags` parameter is missing, and the introspection scanner is
complaining about it.
Emmanuele Bassi [Thu, 21 Dec 2017 18:57:25 +0000 (18:57 +0000)]
build: Ensure we introspect the print operation sources
The documentation and annotations for some of the print API is defined
in platform-specific source files, so we need to ensure we're passing
those files to the introspection scanner in order to avoid warnings, and
to get the appropriate introspected API.
Emmanuele Bassi [Thu, 21 Dec 2017 18:49:25 +0000 (18:49 +0000)]
Annotate gdk_x11_display_get_screen()
We're missing the gtk-doc stanza, as well as the transfer annotation for
the returned pointer.
Emmanuele Bassi [Thu, 21 Dec 2017 18:46:08 +0000 (18:46 +0000)]
Remove unnecessary introspection annotation
Transfer annotations do not apply to integral types.
Emmanuele Bassi [Thu, 21 Dec 2017 18:42:26 +0000 (18:42 +0000)]
broadway: Use correct type in assignment
The new type propagation for g_object_ref() is raising a compiler
warning for an assignment with a different type.
Timm Bäder [Thu, 21 Dec 2017 17:33:41 +0000 (18:33 +0100)]
widgetbowl: Add blurred box shadow demo
Timm Bäder [Thu, 21 Dec 2017 17:09:32 +0000 (18:09 +0100)]
gl renderer: try doing outset box shadows
Still fall back in cases we can't handle that way.
Timm Bäder [Thu, 21 Dec 2017 16:57:16 +0000 (17:57 +0100)]
tests: Add outset shadow drawing test
Timm Bäder [Tue, 19 Dec 2017 21:35:55 +0000 (22:35 +0100)]
gl renderer: Remove unused vertex shader
Timm Bäder [Tue, 19 Dec 2017 15:00:43 +0000 (16:00 +0100)]
gl renderer: Don't crash if the first op is an opacity one
Timm Bäder [Tue, 19 Dec 2017 11:45:32 +0000 (12:45 +0100)]
gl renderer: Force cross-fade nodes offscreen
Timm Bäder [Sat, 16 Dec 2017 09:02:03 +0000 (10:02 +0100)]
gl renderer: Use one function per op type to apply data
Timm Bäder [Sat, 16 Dec 2017 01:37:03 +0000 (02:37 +0100)]
gl renderer: Don't leak gl resources
Timm Bäder [Mon, 11 Dec 2017 09:02:13 +0000 (10:02 +0100)]
showrendernode: Show at least the root node bounds
Timm Bäder [Mon, 11 Dec 2017 07:22:54 +0000 (08:22 +0100)]
gl renderer: Fix indentation mishap
Timm Bäder [Mon, 11 Dec 2017 07:22:28 +0000 (08:22 +0100)]
gl renderer: Implement cross fade nodes
Timm Bäder [Sun, 10 Dec 2017 21:27:21 +0000 (22:27 +0100)]
gl renderer: Fix linear gradient shader color calculation
This fixes both the wrong headerbar color and the broken border color in
of the circular button in the widget-factory.
Timm Bäder [Sat, 9 Dec 2017 17:31:28 +0000 (18:31 +0100)]
gl renderer: Only take glyph texture alpha into account
This way, we can use the very same coloring program to draw text shadows
of fonts with colored glyphs.
Timm Bäder [Sat, 9 Dec 2017 17:26:29 +0000 (18:26 +0100)]
gl renderer: Fix shadow nodes if the child is a container
Timm Bäder [Sat, 9 Dec 2017 15:21:19 +0000 (16:21 +0100)]
gl renderer: Move declarations to the beginning of the block
Timm Bäder [Sat, 9 Dec 2017 13:32:24 +0000 (14:32 +0100)]
gl renderer: Fix use of uninitialized values
Timm Bäder [Sat, 9 Dec 2017 13:31:10 +0000 (14:31 +0100)]
gl renderer: Ensure texture sizes arent 0
We already ceil() the given float texture sizes here, so if they are
valid, the result should definitely be > 0. Textures with size 0 can't
be properly used, especially not as render targets, where they will
trigger an assertion failure later in a glCheckFramebuffer call.
Timm Bäder [Sat, 9 Dec 2017 08:41:52 +0000 (09:41 +0100)]
gl renderer: Fix inset and outset shadows in hidpi
Timm Bäder [Sat, 9 Dec 2017 08:25:47 +0000 (09:25 +0100)]
gl renderer: Fix cairo node surface size in hidpi
Timm Bäder [Sat, 9 Dec 2017 07:59:51 +0000 (08:59 +0100)]
gl renderer: Fix rounded clips in hidpi
Timm Bäder [Sat, 9 Dec 2017 07:57:13 +0000 (08:57 +0100)]
gl renderer: Handle borders in hidpi better
Timm Bäder [Fri, 8 Dec 2017 21:19:52 +0000 (22:19 +0100)]
gl renderer: Default to 0px clip and border radius
Finally fix the division by 0 in the clip code.
Timm Bäder [Fri, 8 Dec 2017 19:43:47 +0000 (20:43 +0100)]
gl renderer: Ignore render ops before we have a valid program
Timm Bäder [Fri, 8 Dec 2017 16:01:16 +0000 (17:01 +0100)]
gl renderer: Try to fix border rendering
Timm Bäder [Fri, 8 Dec 2017 12:12:43 +0000 (13:12 +0100)]
gl renderer: Use one function per node-type
So a profiler can actually tell me what's slow and not just point at
_add_render_ops in all cases.
Timm Bäder [Thu, 7 Dec 2017 16:30:02 +0000 (17:30 +0100)]
gl renderer: Don't render opacity nodes offscreen
We already drag a u_alpha uniform around in every shader, so use that
one.
Timm Bäder [Wed, 6 Dec 2017 18:22:24 +0000 (19:22 +0100)]
tests: Add border drawing test
Timm Bäder [Wed, 6 Dec 2017 16:24:58 +0000 (17:24 +0100)]
gl renderer: Fix shadow shader
We need to take the alpha of the shadow color into account as well.
Timm Bäder [Wed, 6 Dec 2017 15:45:43 +0000 (16:45 +0100)]
gl renderer: Ignore shadow color matrix nodes...
... if the color matrix nodes don't touch the child alpha.
Timm Bäder [Wed, 6 Dec 2017 15:07:18 +0000 (16:07 +0100)]
gl renderer: Add a helper function
We'll use this for the common case of a color matrix node inside a
shadow node.
Timm Bäder [Tue, 5 Dec 2017 17:05:12 +0000 (18:05 +0100)]
gl renderer: Don't zero initialize render ops GArray
Timm Bäder [Tue, 5 Dec 2017 16:49:25 +0000 (17:49 +0100)]
gl renderer: Avoid crashing tooltips
Timm Bäder [Tue, 5 Dec 2017 12:46:29 +0000 (13:46 +0100)]
gl renderer: Sort border sides by color
Timm Bäder [Tue, 5 Dec 2017 07:38:42 +0000 (08:38 +0100)]
gl renderer: Keep track of border program state
Timm Bäder [Tue, 5 Dec 2017 07:01:10 +0000 (08:01 +0100)]
gl renderer: Avoid using a new modelview for shadow nodes
We can just move the vertex data directly.
Timm Bäder [Sun, 3 Dec 2017 21:14:33 +0000 (22:14 +0100)]
gl renderer: Default to GL_LINEAR scaling filters
Timm Bäder [Sun, 3 Dec 2017 19:16:01 +0000 (20:16 +0100)]
gl renderer: Remove superfluous modelview matrix changes
Timm Bäder [Sun, 3 Dec 2017 18:47:20 +0000 (19:47 +0100)]
gl renderer: Remove unused struct member
Timm Bäder [Sun, 3 Dec 2017 18:15:33 +0000 (19:15 +0100)]
gl renderer: Keep track of color matrix op state
Timm Bäder [Sun, 3 Dec 2017 15:58:01 +0000 (16:58 +0100)]
gl renderer: Avoid consecutive opacity ops
Timm Bäder [Sun, 3 Dec 2017 15:54:34 +0000 (16:54 +0100)]
gl renderer: Define debug structs inline
Timm Bäder [Sun, 3 Dec 2017 08:04:07 +0000 (09:04 +0100)]
gl renderer: Add more detailed render op output
Timm Bäder [Sat, 2 Dec 2017 10:17:46 +0000 (11:17 +0100)]
gl renderer: Only draw blurred shadow nodes once
Timm Bäder [Sat, 2 Dec 2017 10:02:31 +0000 (11:02 +0100)]
gl renderer: Remove consecutive clip ops
Timm Bäder [Fri, 1 Dec 2017 12:56:56 +0000 (13:56 +0100)]
gl renderer: Rename a macro
Timm Bäder [Fri, 1 Dec 2017 11:29:27 +0000 (12:29 +0100)]
gl renderer: Fix debugging output
Timm Bäder [Fri, 1 Dec 2017 10:55:10 +0000 (11:55 +0100)]
gl renderer: Implement simple border nodes
Timm Bäder [Fri, 1 Dec 2017 10:02:26 +0000 (11:02 +0100)]
gl renderer: Don't render unblurred text shadows to a texture
We can do the same thing by simply drawing the text in the given shadow
color.
Timm Bäder [Fri, 1 Dec 2017 09:47:13 +0000 (10:47 +0100)]
gl renderer: Split out text rendering function
We'll use that for text shadow nodes
Timm Bäder [Fri, 1 Dec 2017 09:27:31 +0000 (10:27 +0100)]
gl renderer: Implement simple shadow nodes
Timm Bäder [Fri, 1 Dec 2017 08:58:58 +0000 (09:58 +0100)]
gl renderer: Split out a utility function
Timm Bäder [Fri, 1 Dec 2017 07:32:00 +0000 (08:32 +0100)]
gl renderer: Fix inset shadow offset calculation
Timm Bäder [Fri, 1 Dec 2017 07:30:11 +0000 (08:30 +0100)]
gl renderer: Implement unblurred outset shadows
Timm Bäder [Thu, 30 Nov 2017 17:47:55 +0000 (18:47 +0100)]
gl renderer: Rework program creation
Make sure all uniform names have to match between the shader names and
the _location integers we save in every Program struct.
Timm Bäder [Thu, 30 Nov 2017 15:48:03 +0000 (16:48 +0100)]
gl renderer: Implement unblurred inset shadows
Timm Bäder [Sat, 25 Nov 2017 07:56:50 +0000 (08:56 +0100)]
gl renderer: Implement blur nodes
Timm Bäder [Sat, 25 Nov 2017 06:51:00 +0000 (07:51 +0100)]
gl renderer: Remove some unused members
Timm Bäder [Fri, 24 Nov 2017 12:18:45 +0000 (13:18 +0100)]
gl renderer: Keep track of current program color value
Timm Bäder [Fri, 24 Nov 2017 09:43:17 +0000 (10:43 +0100)]
gl renderer: Don't draw texture nodes to a framebuffer
We don't need to create a texture from a texture node. We can simply use
its texture instead and draw it however we want.
Timm Bäder [Fri, 24 Nov 2017 09:32:08 +0000 (10:32 +0100)]
gl renderer: Implement color matrix nodes again
Timm Bäder [Fri, 24 Nov 2017 09:24:49 +0000 (10:24 +0100)]
gl render ops: Rename a member
Timm Bäder [Fri, 24 Nov 2017 09:18:51 +0000 (10:18 +0100)]
gl renderer: Factor out a helper function for offscreen drawing
Timm Bäder [Thu, 23 Nov 2017 19:01:15 +0000 (20:01 +0100)]
gl ops: Remove dead code
This is already checked further up in that function
Timm Bäder [Thu, 23 Nov 2017 18:49:41 +0000 (19:49 +0100)]
gl renderer: Optimize text drawing
Text nodes will almost always end up using the exact same texture and
the same program. So, in that case we can simply add vertex data for all
the characters we need to draw and use just one draw call.
Timm Bäder [Thu, 23 Nov 2017 10:30:05 +0000 (11:30 +0100)]
gl renderer: Remove unused VAO
Timm Bäder [Thu, 23 Nov 2017 09:28:30 +0000 (10:28 +0100)]
gl renderer: Stop collecting VAOs in clear_tree
We don't use that part of the gl driver anymore.
Timm Bäder [Thu, 23 Nov 2017 09:10:43 +0000 (10:10 +0100)]
gl renderer: Only check for color glyphs once per text node
It does not depend on the glyph, so no need to do it once for every
glyph.
Timm Bäder [Thu, 23 Nov 2017 09:02:58 +0000 (10:02 +0100)]
gl renderer: Implement cairo nodes again
Timm Bäder [Wed, 22 Nov 2017 20:02:50 +0000 (21:02 +0100)]
gl renderer: Move render ops into separate file
Timm Bäder [Wed, 22 Nov 2017 19:13:46 +0000 (20:13 +0100)]
gsk: Move all gskgl* files into gl/
Timm Bäder [Wed, 22 Nov 2017 10:32:23 +0000 (11:32 +0100)]
gl renderer: Rework once more
Last time, I swear.
Timm Bäder [Mon, 20 Nov 2017 14:08:04 +0000 (15:08 +0100)]
gl renderer: Don't initialize modelview matrix twice